import Layout from '@/layout'

const productRouter = {
  path: '/product',
  component: Layout,
  redirect: 'noRedirect',
  name: 'product',
  meta: {
    title: 'product',
    icon: 'table'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/product/list'),
      name: 'ProductList',
      meta: { title: 'productListTitle', noCache: true }
    },
    {
      path: 'group',
      component: () => import('@/views/product/group'),
      name: 'ProductGroup',
      meta: { title: 'productGroupTitle', noCache: true }
    }
  ]
}

export default productRouter
